# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-curses
pkgver=1.44
pkgrel=2
pkgdesc="Character screen handling and windowing"
arch=('loong64' 'x86_64')
url="https://search.cpan.org/dist/Curses"
license=('GPL' 'PerlArtistic')
depends=('perl' 'ncurses')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/Curses-$pkgver.tar.gz)
sha512sums=('2c7f9ad9971c1afe6c1bee59581466f848ab1128e546effccd2118cb7bce1962ec7f6a8da60be3cdd1405f6b0a44f7c29c5f7900cbc436940592b1075fbfb6f7')

build() {
  cd  "$srcdir"/Curses-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Curses-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
